package com.letere.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author letere
 * @create 2021-02-04 16:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Blog {
    //博客Id
    private Integer id;

    //标题
    private String title;

    //描述
    private String description;

    //内容
    private String content;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date created;

    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updated;

    //分类
    private String categories;
}
